Connectivity Software User's Guide and Reference
QuickOPC VBScript Examples (ASP, IE, WSH)
QuickOPC > Examples > QuickOPC Examples > QuickOPC COM Examples > QuickOPC VBScript Examples (ASP, IE, WSH)
In This Topic

General

The features decribed or used here are only available if you included "COM development" during the installation of Connectivity Software. If the features are missing, simply re-run the installation program, making sure that "COM development" is included in the selection made on the "Installation Dashboard" setup wizard page.

VBScript Examples in ASP

These VBScript examples run in Internet Information Server (IIS). In order to run the examples, you need to configure an IIS virtual directory that points to the physical directory where the examples are installed.

Examples in this folder are Web server scripts: the page, including OPC data, is generated on the server. The EasyOPC component must be installed on the server side, and the OPC server(s) must be accessible locally or remotely from the computer where EasyOPC component resides.

The server must be in the Web Server (IIS) role, and in it, make sure you have the "Web Server -> Application Development -> ASP" role service.

The identity under which the Web app's application pool runs is important. It needs to have permissions to all required files and operations. In addition, you need to set the "Managed pipeline mode" of the application pool to "Classic" (not the default "Integrated").

VBScript Examples in IE

The examples here run inside Internet Explorer (IE), i.e. directly on client. No Web server is required. The EasyOPC component must be installed on the client side, and the OPC server(s) must be accessible locally or remotely from the computer where EasyOPC component resides.

VBScript Examples in WSH

The examples here run in Windows Script Host (WSH), e.g. from Windows Command Prompt.

It is possible to use CScript (console output) or WScript (window output) to run the examples. Some examples give longer output, and CScript is better for them as you do not have to confirm each “line” of output by pressing a button as in WScript.

For those who want to use the command-line interface, a "Command Prompt From Here" link is installed into the examples folder. This link allows you to switch from the Windows Explorer to a CMD window with the current directory set to the chosen place, for quick experiments and exploration.

Where are the examples?

The examples are available in multiple formats and on different locations. You can pick the one that suits you the best.

Examples on GitHub

See Also

Examples